import request from '@/utils/request'

// 提交知识信息
export function postKnowledge(data) {
  return request({
    url: '/post_knowledge',
    method: 'get',
    params: data
  })
}
// 获取知识列表
export function getKnowledgeListApi(data) {
  return request({
    url: '/get_knowledge_list',
    method: 'get',
    params: data
  })
}
// 修改知识
export function uploadKnowledgeApi(data) {
  return request({
    url: '/upload_knowledge',
    method: 'get',
    params: data
  })
}
// 获取健康知识
export function getKnowledgeApi(data) {
  return request({
    url: '/get_knowledge',
    method: 'get',
    params: data
  })
}
// 获取默认设置
export function getDefaultApi() {
  return request({
    url: '/get_default',
    method: 'get'
  })
}
// 上传默认设置
export function uploadDefault(data) {
  return request({
    url: '/upload_default',
    method: 'get',
    params: data
  })
}
// 获取用户列表
export function getUserListApi(data) {
  return request({
    url: '/get_user_list',
    method: 'get',
    params: data
  })
}
